package com.example.haojiutao.mapper;


/**
 * @Description: 地址
 * @Author: cheng_jianzhen
 * @CreateTime: 2024/1/29 17:45
 */

import com.example.haojiutao.common.Result;
import com.example.haojiutao.model.domain.Address;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AddressMapper {
    /*
     * @Description: 添加地址信息
     * @Author: cheng_jianzhen
     * @CreateTime: 2024/1/29 17:45
     * @param: address
     * @return: int
     **/
    int insertAddress(Address address);

    /*
     * @Description: 删除地址
     * @Author: cheng_jianzhen
     * @CreateTime: 2024/1/29 17:47
     * @param: id
     * @return: int
     **/
    int deleteAddress(Integer id);

    /*
     * @Description: 根据ID查询地址
     * @Author: cheng_jianzhen
     * @CreateTime: 2024/1/29 17:51
     * @param: id
     * @return: com.example.haojiutao.model.domain.Address
     **/
    Address selectById(Integer id);

    /*
     * @Description: 查询所有地址
     * @Author: cheng_jianzhen
     * @CreateTime: 2024/1/29 17:56
     * @param: address
     * @return: java.util.List<com.example.haojiutao.model.domain.Address>
     **/
    List<Address> selectList(Address address);

    /*
     * @Description: 修改地址信息
     * @Author: cheng_jianzhen
     * @CreateTime: 2024/1/29 18:03
     * @param: address
     * @return: int
     **/
    int updateAddress(Address address);
}
